package com.dawn.jpa.mysql.jpa;

import com.dawn.jpa.mysql.entry.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Ruffianjiang
 * @version V1.0
 * @Title: CustomerRepository
 * @Package java4learn
 * @date 2019/4/15 22:13
 */
@Repository
public interface UserRepository extends JpaRepository<User, Long> {

    List<User> findByName(String name);

}
